import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/modules/user'
import deviceInfo from '@/store/modules/deviceInfo'
import imei from '@/store/modules/imei'
import onlineExam from '@/store/modules/onlineExam'
import hiddenDangerInfo from '@/store/modules/hiddenDangerInfo'
import system from '@/store/modules/system'
import specialWork from './modules/specialWork'
import cockpit from './modules/cockpit'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    user,
    deviceInfo,
    onlineExam,
    hiddenDangerInfo,
    specialWork,
    imei,
    cockpit,
    system
  },
  getters
})

export default store
